﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DatabaseAccessLayer;

namespace WebApplication
{
    public partial class NonMemberActivation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["ID"] == null)
                {
                    lblMsg.Text="Please try again. Your account is not activated successfully.";
                }
                else{
                    int UserID =Convert.ToInt32(Request.QueryString["ID"]);
                   int Result = clsUser.NonMemberShipUserRegistrationActivation(UserID);
                   if (Result > 0)
                   {
                       lblMsg.Text = "Thanks for visiting us. Your account has been successfully activated. ";
                   }
                   else
                   {
                       lblMsg.Text = "Please try latter. There is some problem. Sorry for inconvience.";
                   }
                    
                }
            }
        }
    }
}